package com.jgsu.sell.utils;

import java.util.Random;

/**
 * 描述:
 * 随机数
 *
 * @author lqd12
 * @create 2018-08-18 22:52
 */
public class KeyUtil {


    /**
     * 随机数时间+随机数
     * @return
     */
    public static synchronized String genUniqueKey(){
        Random random = new Random();
        Integer num = random.nextInt(900000)+100000;
        return System.currentTimeMillis()+String.valueOf(num);
    }
}